<extend name="Layout/index" />
<block name="breadcrumb">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">角色管理</li>
</block>
<block name="page_header">
	<h1>
		角色管理
		<small>
			<i class="icon-double-angle-right"></i>
			 角色列表
		</small>
	</h1>
</block>
<block name="main_content">
		<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr align='left' bgcolor="#ccc">
					<th>ID</th>
					<th>角色名</th>
					<th>说明</th>
					<th>状态</th>
					<th>拥有权限</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>		
				<volist name="list" id="vo">
					<tr>
						<td><{$vo.id}></td>
						<td><{$vo.name}></td>
						<td><{$vo.remark}></td>
						<td><if condition="$vo.status eq 1">启用<else />禁用</if></td>
						<td width=300>
						    <volist name="vo.node" id='va'>
								<span style="color:#999"><{$va}></span>&nbsp;
							</volist>
						</td>
						<td>
							<a href="<{:U('Role/del',array('id'=>$vo['id']))}>">删除</a>
							<a href="<{:U('Role/edit',array('id'=>$vo['id']))}>">修改</a>
							<a href="<{:U('Role/nodelist',array('id'=>$vo['id']))}>">分配权限</a>
						</td>
					</tr>
				</volist>
			</tbody>
		</table>
</block>